﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Text;

namespace WeBlog.Tests.Mocks
{
    public class MockIdentity : IIdentity
    {
        private readonly string _name;

        public MockIdentity(string userName)
        {
            _name = userName;
        }

        string IIdentity.AuthenticationType
        {
            get { return "Forms"; }
        }

        bool IIdentity.IsAuthenticated
        {
            get { return !String.IsNullOrEmpty(_name); }
        }

        string IIdentity.Name
        {
            get { return _name; }
        }
    }
}
